// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import echarts from 'echarts'
import '@/assets/css/public.css' //重置css文件
import '@/assets/css/common.css'
import '@/assets/js/common.js' //适配文件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import CommonJs from './util/util.js'
import des from 'des.js'
import { Buffer } from 'buffer'
import b64 from 'base64-js'
import { post, fetch, patch, put } from './util/http'


Vue.config.productionTip = false

Vue.use(ElementUI);
Vue.use(CommonJs);

Vue.prototype.axios = axios;
Vue.prototype.$echarts = echarts

//定义全局变量
Vue.prototype.$post = post;
Vue.prototype.$fetch = fetch;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;

Vue.prototype.des = des;
Vue.prototype.Buffer = Buffer;
Vue.prototype.b64 = b64;



/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>',
    data() {
        return {
            domainIp: 'http://192.168.43.185:8081/crm_web/' //本地接口域名lj
                // domainIp: 'http://192.168.43.86:8081/crm_web/' //本地接口域名wcl
                // domainIp: 'http://122.112.210.108:80/crm_web/' //tocat部署时接口域名lj
        }
    }
})